package com.bdqn.wr.service;

import com.bdqn.wr.Dao.UserDao;
import com.bdqn.wr.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserDao userDao;

    public User select(String username){
        User user = userDao.findByUserName(username);
        return user;
    }
}
